#include<iostream>
using namespace std;
class CPoint
{
    protected:
        double x,y;
    public:
        CPoint(double _x=0,double _y=0)
        {
            x=_x;
            y=_y;
        }
};
class CCircle:public CPoint
{
    protected:
        double r;
    public:
    CCircle(double _x=0,double _y=0,double _r=0):CPoint(_x,_y),r(_r){ }
    double Area()
    {
        return 3.14*r*r;
    }
    void disPlay()
    {
        cout<<"Circle:("<<x<<","<<y<<"),"<<r<<endl;
        cout<<"Area:"<<Area()<<endl;
    }
};
class CCylinder:public CCircle
{
    protected:
        double h;
    public:
    CCylinder(double _x=0,double _y=0,double _r=0,double _h=0):CCircle(_x,_y,_r),h(_h){ }
    double Volume()
    {
        return CCircle::Area()*h;
    }
    void disPlay()
    {
        cout<<"Cylinder:("<<x<<","<<y<<"),"<<r<<","<<h<<endl;
        cout<<"Volume:"<<Volume()<<endl;
    }
};
int main()
{
    double x,y,r;
    cin>>x>>y>>r;
    CCircle tmp1(x,y,r);
    tmp1.disPlay();
    double a,b,c,d;
    cin>>a>>b>>c>>d;
    CCylinder tmp2(a,b,c,d);
    tmp2.disPlay();
}